사이트 내 전체검색
리눅스에서 윈도우즈(NAS) 접속 mount.cifs
로빈아빠
https://cmd.kr/server/637 URL이 복사되었습니다.

본문

mount.cifs //NASIP/nas /mnt/backup -o user=username,pass=password,iocharset=euc-kr


mount.cifs //NASIP/nas /mnt/backup -o user=username,pass=password,codepage=cp949,iocharset=euc-kr,file_mode=0644,dir_mode=0755


iocharset <=== 한글 깨지지 않게  utf8 또는 euc-kr

======================================================
설명
[root@localhost ~]# mount.cifs

Usage:  mount.cifs

Mount the remote target, specified as a UNC name, to a local directory.

Options:
 user=
 pass=
 dom=

Less commonly used options:
 credentials=,guest,perm,noperm,setuids,nosetuids,rw,ro,
 sep=,iocharset=,suid,nosuid,exec,noexec,serverino,
 directio,mapchars,nomapchars,nolock,servernetbiosname=

Options not needed for servers supporting CIFS Unix extensions
 (e.g. unneeded for mounts to most Samba versions):
 uid=,gid=,dir_mode=,file_mode=,sfu

Rarely used options:
 port=,rsize=,wsize=,unc=,ip=,
 dev,nodev,nouser_xattr,netbiosname=,hard,soft,intr,
 nointr,ignorecase,noposixpaths,noacl

Options are described in more detail in the manual page
 man 8 mount.cifs

To display the version number of the mount helper:
 mount.cifs -V

댓글목록

등록된 댓글이 없습니다.

1,139 (4/23P)

Search

Copyright © Cmd 명령어 3.143.111.233